using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
//ok

namespace WCFDicing.DataContracts
{
    /// <summary>
    /// klasa opisujaca wlasciwosci rzutu
    /// </summary>
    [DataContract( Namespace = "http://WCFDicing.DataContracts/2008/01", Name = "DicingAnimation" )]
    public partial class DicingAnimation
    {
        /// <summary>
        /// wspolrzedna X
        /// </summary>
        private System.Double XField;

        /// <summary>
        /// get i set wspolrzednej X
        /// </summary>
        [DataMember( IsRequired = false, Name = "X", Order = 0 )]
        public System.Double X
        {
            get { return XField; }
            set { XField = value; }
        }

        /// <summary>
        /// wspolrzedna Y
        /// </summary>
        private System.Double YField;

        /// <summary>
        /// get i set wspolrzednej Y
        /// </summary>
        [DataMember( IsRequired = false, Name = "Y", Order = 1 )]
        public System.Double Y
        {
            get { return YField; }
            set { YField = value; }
        }

        /// <summary>
        /// wspolrzedna Z
        /// </summary>
        private System.Double ZField;

        /// <summary>
        /// get i set wspolrzednej Z
        /// </summary>
        [DataMember( IsRequired = false, Name = "Z", Order = 2 )]
        public System.Double Z
        {
            get { return ZField; }
            set { ZField = value; }
        }

        /// <summary>
        /// sila rzutu
        /// </summary>
        private System.Double ValicityField;

        /// <summary>
        /// get i set sily rzutu
        /// </summary>
        [DataMember( IsRequired = false, Name = "Valicity", Order = 3 )]
        public System.Double Valicity
        {
            get { return ValicityField; }
            set { ValicityField = value; }
        }

        /// <summary>
        /// konstruktor domyslny
        /// </summary>
        public DicingAnimation() { }

        /// <summary>
        /// konstruktor ze wspolrzednymi i predkoscia
        /// </summary>
        /// <param name="x">wspolrzedna x</param>
        /// <param name="y">wspolrzedna y</param>
        /// <param name="z">wspolrzedna z</param>
        /// <param name="v">predkosc</param>
        public DicingAnimation( double x, double y, double z, double v )
        {
            X = x;
            Y = y;
            Z = z;
            Valicity = v;
        }

        /// <summary>
        /// konstruktor kopiujacy
        /// </summary>
        /// <param name="anim">obiekt z ktorego kopiujemy</param>
        public DicingAnimation( DicingAnimation anim )
        {
            this.XField = anim.X;
            this.YField = anim.Y;
            this.ZField = anim.Z;
            this.ValicityField = anim.Valicity;
        }

    }
}
